package com.iie.bigVideo.entity;

import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 *
 * </p>
 *
 * @author XXX
 * @since 2023-11-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "Catalog对象", description = "")
public class Catalog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "目录ID")
    @TableId(value = "catalog_id", type = IdType.AUTO)
    private Integer catalogId;

    @ApiModelProperty(value = "目录名")
    private String catalogName;

    @ApiModelProperty(value = "上一级")
    private Integer catalogLast;

    @ApiModelProperty(value = "逻辑删除（0:未被删除，1：已被删除)")
    private Integer catalogIsDeleted;

    @ApiModelProperty(value = "封面图")
    private String catalogImg;

    @ApiModelProperty(value = "目录生效的范围")
    private String catalogAssert;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private Date catalogCreatedTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "修改时间")
    private Date catalogUpdatedTime;


}
